import { info } from "./url"

async function department() {
  return uni.request({
    url: `${info.url}/info/department`,
    method: "GET"
  });
}

async function history(id) {
  return uni.request({
    url: `${info.url}/info/history`,
    data: { id },
    method: "GET"
  });
}

export default { department, history }